function handleConnection(ws) {
    console.log('New client connected');

    ws.on('message', (message) => {
        console.log(`Received message: ${message}`);
        // Handle incoming messages here
    });

    ws.on('close', () => {
        console.log('Client disconnected');
    });
}

module.exports = handleConnection;